<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

class Sitemap_model extends CI_Model {
  public function __construct() {
    parent::__construct();
  }

  public function generate_xml_sitemap() {

    $this->db
      ->select('url.alias')
      ->from('url_alias url');

    $query = $this->db->get();
    $result = $query->result_array();
    return $result;
  }
}